import Vue from "vue";
//根组件
import App from "./App.vue";
//Vuex配置
import store from "@/store";
//路由配置
import router from "@/router";
//mock配置
import "@/mock";
//表单校验的validate配置
import "@/main/validate";
//图片懒加载配置
import "@/main/lazyload";
//elementUI的配置
import "@/main/elementUI";
//公共组件配置
import "@/main/Components";

Vue.config.productionTip = false;

new Vue({
  render: (h) => h(App),
  router,
  store,
  //事件总线
  beforeCreate() {
    Vue.prototype.$bus = this;
  },
}).$mount("#app");
